package recite.word.mybatis.auto.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 单词书籍表
 * </p>
 *
 * @author linyuxian
 * @since 2023-01-15
 */
@Getter
@Setter
@TableName("book")
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 创建的时间 
     */
    @TableField("created_time")
    private Date createdTime;

    /**
     * 编辑的时间 
     */
    @TableField("edit_time")
    private Date editTime;

    /**
     * 删除状态 1 未删除（有效）  2 已删除（失效）
     */
    @TableField("delete_status")
    private Integer deleteStatus;

    /**
     * 书籍名称
     */
    @TableField("`name`")
    private String name;

    /**
     * 书籍描述
     */
    @TableField("`desc`")
    private String desc;

    /**
     * 书籍简短描述
     */
    @TableField("simple")
    private String simple;

    /**
     * 简短名字
     */
    @TableField("simple_name")
    private String simpleName;

    /**
     * 总单词量
     */
    @TableField("vocabulary")
    private Integer vocabulary;

    /**
     * 封面图片地址
     */
    @TableField("img_url")
    private String imgUrl;

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", createdTime=" + createdTime +
                ", editTime=" + editTime +
                ", deleteStatus=" + deleteStatus +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", simple='" + simple + '\'' +
                ", vocabulary=" + vocabulary +
                ", imgUrl='" + imgUrl + '\'' +
                '}';
    }
}
